import { post } from '@/libs/request'

/**
 * 查询消费记录
 * @param page 页码
 * @param size 页容量
 */
const getConsumeList = (page: number, size = 10) =>
  post<{
    size: number
    page: number
    total: number
    totalPage: number
    hasNext: true
    list: T_ConsumptionRecord[]
  }>('order/consume/list', { page, size })

export { getConsumeList }
